#pragma once

#include <set>
#include <EGL/egl.h>
#include "EglSurface.h"

class EglDisplay;

class EglPixmapSurface: public EglSurface {
public:
    EglPixmapSurface(EglDisplay *dpy, EGLNativePixmapType pix,EglConfig* config);
    ~EglPixmapSurface();

    bool getAttrib(EGLint attrib,EGLint* val);

    static bool alreadyAssociatedWithConfig(EGLNativePixmapType pix);
private:
   EGLNativePixmapType m_pixmap;
   static std::set<EGLNativePixmapType> s_associatedPixmaps;
};